package soso.Dao;

import soso.Inter.TaoCan;

/**
 * @author ：lzc
 * @date ：Created in 2021/8/20 0020 14:41
 * @description：
 */
//话痨套餐
public class TalkPackage extends TaoCan {
    String name = "话痨套餐58元/月";
    int calltime = 500;   //通话时间
    int messagesnum = 30;    //短信数量
    int Monfee = 58;
    int flow = 0; //流量

    public int getMessagesnum() {
        return messagesnum;
    }

    public void setMessagesnum(int messagesnum) {
        this.messagesnum = messagesnum;
    }

    public int getFlow() {
        return flow;
    }

    public void setFlow(int flow) {
        this.flow = flow;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCalltime() {
        return calltime;
    }

    public void setCalltime(int calltime) {
        this.calltime = calltime;
    }

    @Override
    public int getMonfee() {
        return Monfee;
    }

    @Override
    public void setMonfee(int monfee) {
        Monfee = monfee;
    }

    @Override
    public String toString() {
        return name;
    }

    public void Taocanyuelian() {
        System.out.println("当前套餐为:" + name);
        System.out.println("当前可用通话时间为:" + calltime + "分钟");
        System.out.println("当前可用短信数量为:" + messagesnum + "条");
        System.out.println("当前套餐无流量");
    }
}
